package xdu.lz.stage2_design_pattern.chapter10_up_down_context_pattern;

public class QueryFromDBAction {

    //Context 是POJO
    public void execute(Context context){
        try {
            Thread.sleep(100);
            //simulation from db
            String name = "zs" + Thread.currentThread().getName();
            context.setName(name);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

}
